<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        Vue.component('my-component', {
            template: '<div>A custom component!</div>'
        })
        new Vue({
            el: '#example'
        })
    </script>
</head>
<body>
<div id="example">
    <div>A custom component!</div>
</div>
</body>
</html>